#include"ProcessBar.h"
typedef void(*down_type)(int);
void download(down_type type)
{
 int tar=1000,cur=0;
    while(cur<=tar)
    {
    type(cur*100/tar);
    cur+=10;
    usleep(50000);
}
printf("\n");
}
int main()
{
    printf("Down1\n");
    download(process_bar);
    printf("Down2\n");
    download(process_bar);
    printf("Down3\n");
    download(process_bar);
        return 0;
}
